$(function () {
	$("#list_on").click(function () {
		$("#pull_down").toggle();
		$("#stop").css("display", "none");
		$("#deploy").css("display", "block");
	})
	$(".down_list").click(function () {
		$(this).css("background", "#F0F0F0").siblings().css("background", "#fff");
		$("#list_on").text($(this).text());

	})
})

function imgChange(t) {
	var img_ = t.parentNode.parentNode.parentNode.parentNode.parentNode.cloneNode(true)
	var im_url = window.URL.createObjectURL(t.files[0])
	var img = document.createElement("img")
	img.setAttribute("src", im_url)
	img.setAttribute("class", "img_y")
	img.setAttribute("onclick", "img_delete(this)")
	console.log(t)
	console.log(img)
	t.parentNode.appendChild(img)
	document.querySelector("#add_game").appendChild(img_)
}
function img_delete(obj) {
	obj.parentNode.parentNode.parentNode.parentNode.parentNode.remove()
}